<%@page import="common.SerialDAO"%>
<%@page import="common.SerialDTO"%>
<%@page import="Board.BoardMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script>
function init(part){
	location.href ='index.jsp?inc_content=./board/board_list.jsp&bo_part='+part+'&nowPage='+1;
	
}
</script>
<body>
<jsp:useBean id="boardVo" class="Board.BoardVo" />
<jsp:setProperty property="*" name="boardVo" />
<%

String part = (String) session.getAttribute("part");

BoardMyba board = new BoardMyba();
board.setVo(boardVo);
%>
<%if(board.delete()){ %>
<input type = 'hidden' name = 'bo_part'>
<script>
init("<%=part%>");
</script>
<%}else{ %>
	<h3>삭제 실패</h3>
<%} %>
</body>
</html>